package com.hpch.business.param;

import com.hpch.common.core.annotation.QueryField;
import com.hpch.common.core.annotation.QueryType;
import com.hpch.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 网站资讯分类查询参数
 *
 * @author EleAdmin
 * @since 2025-03-02 19:12:18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "ClassifyParam对象", description = "网站资讯分类查询参数")
public class ClassifyParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @QueryField(type = QueryType.EQ)
    private Integer id;

    @ApiModelProperty(value = "是否删除")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @ApiModelProperty(value = "栏目名称")
    private String catname;

    @ApiModelProperty(value = "唯一标识")
    private String catdir;

    @ApiModelProperty(value = "类别 0 列表 1 单页 3 专题专栏样式")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @ApiModelProperty(value = "模型ID 1 新闻动态 值就是parentid")
    @QueryField(type = QueryType.EQ)
    private Integer modelid;

    @ApiModelProperty(value = "父ID")
    @QueryField(type = QueryType.EQ)
    private Integer parentid;

    @ApiModelProperty(value = "所有父id")
    private String arrparentid;

    @ApiModelProperty(value = "是否存在子栏目，1存在")
    @QueryField(type = QueryType.EQ)
    private Boolean child;

    @ApiModelProperty(value = "栏目图片")
    private String image;

    @ApiModelProperty(value = "栏目图标")
    private String icon;

    @ApiModelProperty(value = "栏目描述")
    private String description;

    @ApiModelProperty(value = "链接地址")
    private String url;

    @ApiModelProperty(value = "文档数量")
    @QueryField(type = QueryType.EQ)
    private Integer items;

    @ApiModelProperty(value = "排序")
    @QueryField(type = QueryType.EQ)
    private Integer listorder;

    @ApiModelProperty(value = "状态")
    @QueryField(type = QueryType.EQ)
    private Integer statusFlag;

    @ApiModelProperty(value = "1 正常显示 0 隐藏")
    @QueryField(type = QueryType.EQ)
    private Integer isShow;

    @ApiModelProperty(value = "0 不可推荐 1 可推荐 可推荐的是指可以共享的")
    @QueryField(type = QueryType.EQ)
    private Boolean isRecommend;

}
